import { PLATFORM_Map } from "@/constant/index";
import manufacturermanagement from "@/assets/images/leftminsvg/manufacturermanagement.svg?component";
export default {
	path: '/product-management',
	redirect: '/product-management/manufacturer-management',
	meta: {
		title: '产品管理',
		showLink: true,
		rank: 8,
		icon: manufacturermanagement,
		platform: [PLATFORM_Map.manage]
	},
	children: [
		{
			name: 'manufacturer-management',
			path: '/product-management/manufacturer-management',
			component: () => import('@/views/manage/product-management/manufacturer-management/index.vue'),
			meta: {
				title: '厂家管理',
				showParent: true,
				roles:['system.factory.select']
			},
		},
		{
			name: 'product-type',
			path: '/product-management/product-type',
			component: () => import('@/views/manage/product-management/product-type/index.vue'),
			meta: {
				title: '产品类型',
				showParent: true,
				roles:['system.product.select']
			}
		},
		{
			name: 'gateway-protocol',
			path: '/product-management/gateway-protocol',
			component: () => import('@/views/manage/product-management/gateway-protocol/index.vue'),
			meta: {
				title: '网关协议',
				showParent: true,
				roles:['system.protocol']
			}
		}
	]
} satisfies RouteConfigsTable;
